package nz.ac.massey.whatiscomputerscience.implementation.io;

import io.AgentSerialisable;
import io.InSerialisationAgent;

import java.io.BufferedReader;

import nz.ac.massey.whatiscomputerscience.core.model.VectorImage;

/**
 * This agent is able to serialise a new VectorImage from a standard input file
 * TODO This standard does not yet exist
 *
 * @author Francis Stephens
 */
public class VectorImageIAgent implements InSerialisationAgent
{
	private static final String AGENT_NAME = "Standard Vector Image Serialisation Input Agent";
	private static final String AGENT_DESCRIPTION = "Turns files of a standard nature into Vector Images";// Incomplete
	private VectorImage newImage;

	/**
	 * @see io.InSerialisationAgent#getAgentDescription( )
	 */
	public String getAgentDescription( )
	{
		return AGENT_DESCRIPTION;
	}

	/**
	 * @see io.InSerialisationAgent#getAgentName( )
	 */
	public String getAgentName( )
	{
		return AGENT_NAME;
	}

	/**
	 * @see io.InSerialisationAgent#readInSerialisation( java.io.BufferedReader )
	 */
	public boolean readInSerialisation( BufferedReader in )
	{
		// TODO Complete this
		return false;
	}

	/**
	 * @see io.InSerialisationAgent#retrieveItem( )
	 */
	public AgentSerialisable retrieveItem( )
	{
		return this.newImage;
	}
}